package cn.varin.mqttclientapi.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


/**
 * <p>
 * 设置WebMvc相关配置
 * </p>
 *
 * @author Patrick
 * @since 2025-1-1
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    /**
     * 解决resources下的静态资源无法访问
     *
     * @param registry 资源映射注册器
     */
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {

//        // 静态资源映射
//        registry.addResourceHandler(STATIC_WITHE_PATH_LIST)
//                .addResourceLocations(STATIC_WITHE_LOCATION_LIST)
//                .setCachePeriod(0);
    }

}

